﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ManageCenter_SystemSetMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblshowtime.Text = "今天是：" + DateTime.Now.ToString("yyyy年MM月dd日");
        if (Session["UserName"] != null && Session["UserType"].ToString() == "住房保障管理中心")
        {
            lblusername.Text = Session["UserName"].ToString();
            //lblusertype.Text = Session["UserType"].ToString();
        }
        else
        {
            WebHelper.AlertAndRedirect("登陆超时，请重新登陆", "../Login.aspx");
        }
    }
    protected void ddlstreet_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlstreet.SelectedValue != "房管中心")
        {
            Session["UserType"] = "辖区房管所";
            Session["UserStreet"] = ddlstreet.SelectedValue;
            Session["IsAdmin"] = "true";
            Response.Redirect("../HouseKeep/ManageAdmissibility.aspx");
        }
    }
}
